#ifndef unicode_h
#define unicode_h

// this header needs
#include "wchar.h"
#include "ascii.h"

// unicode has different encoding representations: UTF8, UTF16, UTF32, etc.
// but the integer representation is the same for all encodings. This header
// includes functions to deal only with the integer representation
// this encoding inherits the ASCII table characters

// unicode range
#define OWL_MIN_UNICODE 0x000000
#define OWL_MAX_UNICODE 0x10FFFF
#define OWL_INV_UNICODE 0xFFFFFF
#define OWL_INV_UNICODE_STR "[INV_UNICODE_INT]"

// character constants (wchar.h)
owl_wchar OWL_UNICODE_NUM[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
                               'A', 'B', 'C', 'D', 'E', 'F',
                               'a', 'b', 'c', 'd', 'e', 'f',
                               '+', '-', '.', 'X', 'x'};
owl_wchar OWL_UNICODE_WSP[] = {'\t', '\n', '\v', '\f', '\r', ' '};
owl_wchar OWL_UNICODE_PATH[] = {'/', '\\', '.'};
owl_wchar OWL_UNICODE_LETR[] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 
                                'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
                                'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 
                                'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
#define OWL_UNICODE_NULL 0x00

// basic functions
owl_byte owl_check_wchar_unicode(owl_wchar ch);
owl_byte owl_print_wchar_unicode(owl_wchar ch);

#include "unicode.c"

#endif // unicode_h
